import babel from '@rollup/plugin-babel';
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import json from 'rollup-plugin-json';

export default {
    input: 'src/entry-dev.js',
    output: [
    {
        file: `build/vue.esm.js`,
        format: 'es',
        sourcemap: false
    },{
        file: `build/vue.iife.js`,
        format: 'iife',
        name: 'Vue',
        sourcemap: false
    }],
    plugins: [
        json(),
        resolve(),
        babel({
            babelHelpers: 'bundled',
            exclude: 'node_modules/**',
        }),
        commonjs(),
    ],
};